package com.ray.quartz.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.zjhc.flyhong.common.function.operator.PageDto;

/**
 * 类BaseDao的功能描述:
 * 基础Dao(还需在XML文件里，有对应的SQL语句)
 * @auther hxy
 * @date 2017-04-28 11:25:08
 */
public interface BaseMapper<T> {
	
	int save(T t);
	
	int save(Map<String, Object> map);
	
	int saveBatch(List<T> list);
	
	int update(T t);
	
	int update(Map<String, Object> map);
	
	int delete(Object id);
	
	int delete(Map<String, Object> map);
	
	int deleteBatch(Object[] ids);

	T queryObject(Object id);
	
	List<T> queryPageList(@Param("page")PageDto<T> page,@Param("record")T t);

	List<T> queryListByBean(T t);

	List<T> queryList(T t);

	int queryTotal(T t);

	int queryTotal();





}
